#ifndef __CP_Monitor_H
#define __CP_Monitor_H

#ifdef APM32E10X_HD
	#include "apm32e10x_adc.h" 
	#include "apm32e10x_dma.h" 
	#include "apm32e10x_rcm.h" 
	#include "apm32e10x_gpio.h" 

#elif defined AT32F403AVGT7
	#include "at32f403a_407_adc.h" 
	#include "at32f403a_407_dma.h" 
	#include "at32f403a_407_crm.h" 
	#include "at32f403a_407_gpio.h" 

#else
	#include "apm32f10x_adc.h" 
	#include "apm32f10x_dma.h" 
	#include "apm32f10x_rcm.h" 
	#include "apm32f10x_gpio.h" 
	
#endif

// CP信号检测 // 
#if defined SQDri_EVSEB_11KW
//引脚块1 = 接引脚块B = PC0
#define CP_RTC             RCM_APB2_PERIPH_GPIOC
#define CP_PinPort         GPIOC
#define CP1_PinId          GPIO_PIN_0
// CP ADC通道
#define CP1_ADC_Chn        ADC_CHANNEL_10

#elif defined SQDri_EVSEB_7KW
//引脚块1 =  PC0
#define CP_RTC             RCM_APB2_PERIPH_GPIOC
#define CP_PinPort         GPIOC
#define CP1_PinId          GPIO_PIN_0
// CP ADC通道
#define CP1_ADC_Chn        ADC_CHANNEL_10

#else
//引脚块1 = 接引脚块B = PB1
#define CP_RTC             RCM_APB2_PERIPH_GPIOB
#define CP_PinPort         GPIOB
#define CP1_PinId          GPIO_PIN_1
// CP ADC通道
#define CP1_ADC_Chn        ADC_CHANNEL_9

#endif


void ADC_CP_Init(void);

#endif


